#include <iostream>

using namespace std;

#include "Steal.h"
#include "Event.h"

Steal::Steal() : Event()
{
//placeholder
}

Steal::Steal(string type, Time t) :Event (type, t)
{
//placeholder
}


bool Steal::assignValues()
{
bool checkInput=true;

m_eventType="ST";
cin>>m_eventTime;
cin>>m_team;
cin>>m_commitPlayer;
m_eventTime.reverseTime();

	if ((m_commitPlayer > 100) || (m_commitPlayer <0 ))
	{
	checkInput=false;
	}
	if(!m_eventTime.checkTimeInput())
	{
	checkInput=false;
	}	
	if((m_team!='H')&&(m_team!='h')&&(m_team!='A')&&(m_team!='a'))
	{
	checkInput=false;
	}
return checkInput;

}
